Optimal. Leaf size=31 \[ a \log (x)+\frac {1}{2} b \text {Ci}\left (d x^2\right ) \sin (c)+\frac {1}{2} b \cos (c) \text {Si}\left (d x^2\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {14, 3458, 3457,
3456} \begin {gather*} a \log (x)+\frac {1}{2} b \sin (c) \text {CosIntegral}\left (d x^2\right )+\frac {1}{2} b \cos (c) \text {Si}\left (d x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 3456
Rule 3457
Rule 3458
Rubi steps
\begin {align*} \int \frac {a+b \sin \left (c+d x^2\right )}{x} \, dx &=\int \left (\frac {a}{x}+\frac {b \sin \left (c+d x^2\right )}{x}\right ) \, dx\\ &=a \log (x)+b \int \frac {\sin \left (c+d x^2\right )}{x} \, dx\\ &=a \log (x)+(b \cos (c)) \int \frac {\sin \left (d x^2\right )}{x} \, dx+(b \sin (c)) \int \frac {\cos \left (d x^2\right )}{x} \, dx\\ &=a \log (x)+\frac {1}{2} b \text {Ci}\left (d x^2\right ) \sin (c)+\frac {1}{2} b \cos (c) \text {Si}\left (d x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 29, normalized size = 0.94 \begin {gather*} a \log (x)+\frac {1}{2} b \left (\text {Ci}\left (d x^2\right ) \sin (c)+\cos (c) \text {Si}\left (d x^2\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 29, normalized size = 0.94
method | result | size |
default | \(a \ln \left (x \right )+b \left (\frac {\cos \left (c \right ) \sinIntegral \left (d \,x^{2}\right )}{2}+\frac {\sin \left (c \right ) \cosineIntegral \left (d \,x^{2}\right )}{2}\right )\) | \(29\) |
risch | \(a \ln \left (x \right )-\frac {{\mathrm e}^{-i c} \mathrm {csgn}\left (d \,x^{2}\right ) \pi b}{4}+\frac {{\mathrm e}^{-i c} \sinIntegral \left (d \,x^{2}\right ) b}{2}-\frac {i {\mathrm e}^{-i c} \expIntegral \left (1, -i d \,x^{2}\right ) b}{4}+\frac {i b \,{\mathrm e}^{i c} \expIntegral \left (1, -i d \,x^{2}\right )}{4}\) | \(71\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains complex when optimal does not.
time = 0.36, size = 50, normalized size = 1.61 \begin {gather*} -\frac {1}{4} \, {\left ({\left (i \, {\rm Ei}\left (i \, d x^{2}\right ) - i \, {\rm Ei}\left (-i \, d x^{2}\right )\right )} \cos \left (c\right ) - {\left ({\rm Ei}\left (i \, d x^{2}\right ) + {\rm Ei}\left (-i \, d x^{2}\right )\right )} \sin \left (c\right )\right )} b + a \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 38, normalized size = 1.23 \begin {gather*} \frac {1}{2} \, b \cos \left (c\right ) \operatorname {Si}\left (d x^{2}\right ) + a \log \left (x\right ) + \frac {1}{4} \, {\left (b \operatorname {Ci}\left (d x^{2}\right ) + b \operatorname {Ci}\left (-d x^{2}\right )\right )} \sin \left (c\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a + b \sin {\left (c + d x^{2} \right )}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.92, size = 32, normalized size = 1.03 \begin {gather*} \frac {1}{2} \, b \operatorname {Ci}\left (d x^{2}\right ) \sin \left (c\right ) + \frac {1}{2} \, b \cos \left (c\right ) \operatorname {Si}\left (d x^{2}\right ) + \frac {1}{2} \, a \log \left (d x^{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} a\,\ln \left (x\right )+\frac {b\,\sin \left (c\right )\,\mathrm {cosint}\left (d\,x^2\right )}{2}+\frac {b\,\cos \left (c\right )\,\mathrm {sinint}\left (d\,x^2\right )}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________